package com.nulldev.util.os.winepint;

import com.nulldev.util.os.CPUUtil;
import com.nulldev.util.os.OSUtil;

public class WineDetector {

	public static boolean isWinePresent() {
		if (OSUtil.isLinux()) {
			return OSUtil.PackageUtil.isPackage("wine") && OSUtil.PackageUtil.isPackage("winecfg");
		}
		return false;
	}
	
	public static boolean isRunningOnWine() {
		return CPUUtil.getArch().equals("wine") || CPUUtil.getArch().equals("wine64");
	}
}
